package com.ocp.socket.task;

import com.ocp.socket.task.service.ITaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author: lichong
 * @email: li_chong@massclouds
 * @Date: 2019/3/15 10:10
 * @Description:
 */
@Component
public class TestTask {
    private static final Logger logger = LoggerFactory.getLogger(TestTask.class);
    @Autowired
    private ITaskService taskService;

    @Scheduled(cron = "0/5 * * * * ?")
    public void getSessionIds() {
        taskService.checkExpireDeviceInfo();
    }

}
